#ifndef FONT_H
#define FONT_H

#include "xil_types.h" // For u8, u32 types
#include <stdio.h> // For sprintf, if needed in font functions (e.g., DrawNumber)

// 字体大小定义
#define FONT_WIDTH  8
#define FONT_HEIGHT 8

// 字符绘制函数
void DrawChar(u8* frameBuffer, u32 fb_width, u32 fb_height, int x, int y, char character, u8 r, u8 g, u8 b);
void DrawString(u8* frameBuffer, u32 fb_width, u32 fb_height, int x, int y, const char* text, u8 r, u8 g, u8 b);
void DrawNumber(u8* frameBuffer, u32 fb_width, u32 fb_height, int x, int y, int number, u8 r, u8 g, u8 b);

#endif // FONT_H
